import _http from "@/utils/http";

export default {
  shopInfo(params, loading, headers) {
    return _http("post", {
      url: "/ums/app/shop/info",
      apiName: "获取店铺信息",
    }, params, loading, headers);
  },

  myConsumer(params, loading, headers) {
    return _http("post", {
      url: "/ums/app/shop/myConsumer",
      apiName: "我的分销商",
    }, params, loading, headers);
  },

  mySupplier(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/relation/mySupplier",
      apiName: "我的供应商",
    }, params, loading, headers);
  },

  registerProxy(params, loading, headers) {
    return _http("post", {
      url: "/ums/register/proxy",
      apiName: "代注册商铺",
    }, params, loading, headers);
  },

  uploadImg(params, loading, headers) {
    return _http("post", {
      url: "/ums/file/upload/img",
      apiName: "图片上传",
    }, params, loading, headers);
  },

  signQrCode(params, loading, headers) {
    return _http("post", {
      url: "/ums/user/sign/livingCheckByProxy",
      apiName: "实名授权申请 - 代注册获取二维码-app/web通用",
    }, params, loading, headers);
  },

  signApp(params, loading, headers) {
    return _http("post", {
      url: "/ums/user/sign/livingCheck/app",
      apiName: "APP实名授权申请",
    }, params, loading, headers);
  },

  signNotify(params, loading, headers) {
    return _http("post", {
      url: "/ums/user/non-auth/platform/sign/ali/living/notify",
      apiName: "支付宝授权回调",
    }, params, loading, headers);
  },

  shopModify(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/modify",
      apiName: "修改商铺信息",
    }, params, loading, headers);
  },

  shopQrInfo(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/qr/info",
      apiName: "获取商铺信息",
    }, params, loading, headers);
  },

  bindSupplier(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/relation/binding",
      apiName: "绑定供应商",
    }, params, loading, headers);
  },

  userList(params, loading, headers) {
    return _http("post", {
      url: "/ums/shop/user",
      apiName: "获取员工列表",
    }, params, loading, headers);
  },
};
